package com.xnyzc.lhy.nio.feign.fallback.amap;

import com.xnyzc.lhy.nio.feign.amap.IAmapService;
import com.xnyzc.lhy.resource.entity.amap.AmapGouldHistoryGps;
import com.xnyzc.lhy.resource.entity.amap.AmapGouldResult;
import com.xnyzc.lhy.resource.entity.amap.AmapGpsIdParam;
import com.xnyzc.lhy.resource.entity.amap.AmapHistoryGpsParam;
import com.xnyzc.lhy.resource.entity.amap.AmapTidParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@Service
public class AmapServiceFallback implements IAmapService {
    @Override
    public Long getAmapTid(AmapTidParam param) {
        log.info("获取猎鹰服务终端ID失败!");
        return 0L;
    }

    @Override
    public Long getAmapGpdId(AmapGpsIdParam param) {
        log.info("获取猎鹰服务轨迹ID失败!");
        return 0L;
    }

    @Override
    public Double getDistance(String startLng, String startLat, String endLng, String endLat) {
        log.info("获取两点之间距离失败!");
        return 0.0;
    }

    @Override
    public HashMap<String, String> getDistanceAndDuration(String startPoint, String endPoint) {
        log.info("获取点位之间的时间与里程失败!");
        return new HashMap<>();
    }

    @Override
    public Map<String, Integer> getStrategy(String startPoint, String endPoint) {
        log.info("获取点位之间的时间与里程失败!");
        return new HashMap<>();
    }

    @Override
    public AmapGouldHistoryGps getHistoryGps(AmapHistoryGpsParam param) {
        log.info("获取历史轨迹失败!");
        return new AmapGouldHistoryGps();
    }

    @Override
    public AmapGouldResult getDistancePoint(String startPoint, String endPoint) {
        log.info("获取里程实体失败!");
        return new AmapGouldResult();
    }


}
